package com.myGroup.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("评论实体类")
public class Comment {

    @ApiModelProperty("评论id")
    private Integer id;

    // -------- 这些二级评论才有 ------------
    @ApiModelProperty("父级评论id（顶级评论为null（改了，现在为0），二级评论才有）")
    private Integer parentId;

    @ApiModelProperty("回复评论的id")
    private Integer replyCommentId;

    @ApiModelProperty("回复用户的id")
    private Integer replyUserId;
    // -------------------------------------

    @ApiModelProperty("评论人id")
    private Integer userId;

    @ApiModelProperty("评论内容")
    private String commentContent;

    @ApiModelProperty("评论时间")
//    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("点赞数")
    private Integer likeNum;
}
